package com.alks.function.data.request.biocontrol.factoryQuery;

import com.alks.entity.data.page.PageParam;
import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author MS
 * @since 2024/11/7下午5:27
 */
@Data
public class StkAccRequest extends PageParam {

    @JsonIgnore
    @ApiModelProperty(value = "公司ID")
    private String companyId;

    @JsonIgnore
    @ApiModelProperty(value = "打印标志位")
    private Boolean exportFlag = false;

    @NotNull(message = "请选择日期")
    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @ApiModelProperty(value = "记录日期")
    private LocalDateTime ddate;

    @NotNull(message = "请选择工艺")
    @ApiModelProperty(value = "工艺")
    private String processCode;

    @ApiModelProperty(value = "指令")
    private String lotNo;

    @ApiModelProperty(value = "型体")
    private String style;

    @ApiModelProperty(value = "筛选字段（返回所勾选需要大于零的字段名）")
    private List<String> positiveFile;

    @ApiModelProperty(value = "排序字段")
    private String orderFile;

    @ApiModelProperty(value = "排序方式 1 正序 2 倒序")
    private Integer orderType;

}
